### support bash/zsh

### ref this file
### add line to $HOME/.bash_profile
### [[ -f ~/myscripts/mybash_profile ]] && . ~/myscripts/mybash_profile

alias ll='ls --color=auto -lh --time-style="+%Y/%m/%d %H:%I:%S"'
alias lla='ls -a --color=auto -lh --time-style="+%Y/%m/%d %H:%I:%S"'
alias rm='rm -i'
alias ssh='ssh -CXY'
alias scu='systemctl --user'
#alias ssh=$HOME/myscripts/assh.sh
alias aria2c='aria2c -x 5 -k 1M'
alias ec='emacsclient -n'
alias ecv='emacsclient -t -c -q'    # 用于简单编辑配置文件，轻量级命令行emacs view
alias eml='emacs -nw -Q'     # 非常轻量级新的emacs实例
alias git=$HOME/triline/myscripts/egit.sh
# about X selection
alias pwdxs='pwd | xsel -p -b'
# alias pip='pip --user'   # 以普通用户安装pip包

export PATH=$PATH:$HOME/.gem/ruby/2.3.0/bin:$HOME/bin:$HOME/.local/bin
export PATH=$PATH:$HOME/triline/aurcare:$HOME/triline/shell:$HOME/triline/myscripts
export PATH=$PATH:$HOME/golib/bin:$HOME/work/bin:$HOME/oss/bin  # for other compiled go bin
export GOPATH=$HOME/golib:$HOME/work:$HOME/oss
export LD_LIBRARY_PATH=$HOME/mylib:$LD_LIBRARY_PATH

export PYTHONPATH=$PYTHONPATH:.
export PYTHONDONTWRITEBYTECODE=1  #禁止生成.pyc

export RUBYLIB=.:$HOME/opensource/rubyjitqt/lib
export RUST_SRC_PATH=/usr/src/rust/src   # for rust-racer

export DTPXY=127.0.0.1:8117
export GIT_SSH=$HOME/myscripts/socks5proxyssh
export GIT_TRACE=0
export GIT_CURL_VERBOSE=0

export WINEARCH=win32
export WINEPREFIX=$HOME/.wine32
export LIBGUESTFS_PATH=$HOME/vms/appliance

JAVA_OPTS="-Xmx128M -Xms16M -Xss2M"
JAVA_HOME=/usr/lib/jvm/default
AKKA_LIB=$HOME/jars/akka-2.3.8/lib/akka
#export CLASSPATH=$AKKA_LIB/akka-actor_2.11-2.3.8.jar:$AKKA_LIB/akka-actor_2.11-2.3.8.jar:$AKKA_LIB/config-1.2.1.jar
# use -Djava.ext.dirs=...替代
JAR_EXTS=$JAVA_HOME/jre/lib/ext:$AKKA_LIB

# queueit变量
export QUEUEIT_HOST=127.0.0.1
export QUEUEIT_PORT=11300
export QUEUEIT_TIMEOUT=100
export QUEUEIT_TTR=5000


#######shity
alias youtube-dl='youtube-dl --proxy 127.0.0.1:8117'
# alias go='http_proxy=127.0.0.1:8080 go'
# 显示go get的网络流量进度
# strace -f -e trace=network go get github.com/divan/gofresh 2>&1 | pv -i 0.05 > /dev/null
